/**
 * Created by nengjian on 2017/5/16.
 */
var Promise = require('bluebird'),
    _ = require('lodash'),

    exports,
    models;


exports = module.exports;

models = [
    'posts',
];

function init() {
    exports.Base = require('./base');

    models.forEach(function (name) {
        _.extend(exports, require('./' + name));
    });
    return Promise.resolve();
}

exports.init = init;